//package com.plian.system.controller.zzd.mixedReform;
//
//import com.plian.system.config.HasGZWRole;
//import com.plian.system.dto.zzd.ZZDQuery;
//import com.plian.system.model.R;
//import com.plian.system.service.zzd.IZZDMixedReformService;
//import com.plian.system.vo.report.PieValueVO;
//import com.plian.system.vo.zzd.mixedReform.MixedAnnualVO;
//import com.plian.system.vo.zzd.mixedReform.MixedFinishVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@HasGZWRole
//@RestController
//@RequestMapping(value = "api/zzd/mixed")
//@AllArgsConstructor
//@Api(value = "浙政钉-企业改革", tags = "浙政钉-企业改革相关接口")
//public class ZZDMixedReformController {
//
//    private IZZDMixedReformService mixedReformService;
//
//    @PostMapping("/mixedReform")
//    @ApiOperation(value = "企业改革")
//    public R<MixedAnnualVO> getMixedAnnual(@Validated @RequestBody ZZDQuery query){
//        return R.data(mixedReformService.getMixedAnnual(query));
//    }
//
//    @GetMapping("/mixedTotal")
//    @ApiOperation("横栏")
//    public R<MixedAnnualVO> getMixedTotal(@RequestParam(name = "date",required= false)String date){
//        return R.data(mixedReformService.getMixedTotal(date));
//    }
//
//    @GetMapping("/mixedFinish")
//    @ApiOperation("改革成果")
//    public R<List<MixedFinishVO>> getMixedFinish(@RequestParam(name = "date",required= false)String date){
//        return R.data(mixedReformService.getMixedFinish(date));
//    }
//
//    @GetMapping("/socialCapital")
//    @ApiOperation("引入社会资本量")
//    public R<List<MixedAnnualVO>> getSocialCapital(@RequestParam(name = "date",required= false) String date){
//        return R.data(mixedReformService.getSocialCapital(date));
//    }
//
//    @GetMapping("/getOrgSort")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sortType", value = "排序依据：1-资产总额；2-利润总额；3-净资产收益率")
//    })
//    @ApiOperation("混改企业排名")
//    public R<List<MixedFinishVO>> getOrgSort(@RequestParam(name = "sortType",required= false,defaultValue = "1") Integer sortType,
//                                             @RequestParam(name = "date",required= false) String date){
//        return R.data(mixedReformService.getOrgSort(sortType,0,date));
//    }
//
//    @GetMapping("/getThreeOrgSort")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "sortType", value = "排序依据：1-资产总额；2-利润总额；3-净资产收益率")
//    })
//    @ApiOperation("三江汇海企业排名")
//    public R<List<MixedFinishVO>> getThreeOrgSort(@RequestParam(name = "sortType",required= false,defaultValue = "1") Integer sortType,
//                                                  @RequestParam(name = "date",required= false) String date){
//        return R.data(mixedReformService.getOrgSort(sortType,1,date));
//    }
//
//    @GetMapping("/orgOrder")
//    @ApiOperation("企业级次")
//    public R<List<PieValueVO>> getOrgOrder(@RequestParam(name = "date",required= false) String date){
//        return R.data(mixedReformService.getOrgOrder(date));
//    }
//
//    @GetMapping("/mixTypes")
//    @ApiOperation("混改方式")
//    public R<List<PieValueVO>> getMixTypes(@RequestParam(name = "date",required= false) String date){
//        return R.data(mixedReformService.getMixTypes(date));
//    }
//
//    @GetMapping("/mixedValue/{date}")
//    @ApiOperation("初始化混改企业值")
//    public void saveAllMixedValue(@PathVariable String date){
//         mixedReformService.saveAllMixedValue(date);
//    }
//
//    @GetMapping("/mixedAnnual/{date}")
//    @ApiOperation("初始化混改率")
//    public void saveAllMixedAnnual(@PathVariable String date){
//        mixedReformService.saveAllMixedAnnual(date);
//    }
//}
